import initState from '../states/userState'
import methods from '../methods/userMethod'
export default (state = initState, action) => {
    try {
        return methods[action.type](state,action.data)
    } catch (error) {
        return state;
    }
}